async function run($input, $output, $modules = modules) {

    /**获取客户群详情
       * 官方API：https://work.weixin.qq.com/api/doc/90000/90135/92122
       * 错误码查询工具：https://open.work.weixin.qq.com/devtool/query?e=
       */

    const wxworkApi = $modules.wxworkApi;

    let getGroupChat = await wxworkApi.request(
        {
            method: 'post',
            url: 'externalcontact/groupchat/get',
            data: {
                chat_id: $input.chat_id
            }
        }
    );
    //字符串格式输出客户群详情
    $output.groupChat = JSON.stringify(getGroupChat.group_chat);
}
